package com.whfc.fmam.entity.qo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author lk
 * @description
 */
@Data
public class FmamPlanMatQO implements Serializable {


    private Integer id;

    @NotNull
    private Long matId;

    @NotEmpty
    private String matCode;

    @NotEmpty
    private String matName;

    private String spec;

    private String model;

    private String texture;

    @NotNull
    private Integer unitId;

    @NotEmpty
    private String unitName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date useTime;

    private String usePart;

    @NotNull
    private Double number;

    /**
     * 材料单状态：0-合格,1-不合格
     */
    private Integer checkState;

    private String remark;

}